import request,{Method} from '@/libs/api.js'

// 获取评论的分页数据
export function getEvaluationPage (params) {
  return request({
    url: '/member/membermvaluation/getEvaluationPage',
    method: Method.POST,
    data: params
  });
}

// 根据评论ID获取评论详情
export function getEvaluationDetailById (id) {
  return request({
    url: `/member/membermvaluation/getEvaluationDetailById/${id}`,
    method: Method.GET,
  });
}

// 修改评价状态
export function updateStatus (params) {
  return request({
    url: '/member/membermvaluation/updateStatus',
    method: Method.PUT,
    data: params
  });
}
